/*
 * UARTDriver.h
 *
 *  Created on: Jul 25, 2016
 *      Author: yzz
 */

#ifndef UARTDRIVER_H_
#define UARTDRIVER_H_
#include "stm32f4xx_hal.h"
#include "peripherals/peripherals.h"

void HAL_Printf(char* fmt, ...);
void Transmit(uint8_t *pData, uint16_t Size, uint32_t Timeout);
void printch(char ch);
void printdec(int dec);
void printflt(double flt);
void printstr(char* str);
void printbin(int bin);
void printhex(int hex);

extern UART_HandleTypeDef huart1;

#endif /* UARTDRIVER_H_ */
